#ifndef __DATABASE_H__
#define __DATABASE_H__

#include <mysql++.h>

using mysqlpp::Connection;
using mysqlpp::Query;
using mysqlpp::Row;
using mysqlpp::Result;

class DatabaseConnector {
	Connection			conn;
	string 			user;
	string			passwd;
	string			dbname;
public:
	bool				connect(string _user, string _passwd, string _dbname);
	void				disconnect();
	Result			query(string q);
};

#endif
